package com.example.basic.web.model.stretcher;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.basic.base.IdEntity;
import com.example.basic.base.event.PreCreateEventEntity;
import com.example.basic.base.event.PreUpdateEventEntity;
import com.example.basic.utils.CommonConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 担架板库位
 * </p>
 *
 * @roleor zzl
 * @since 2024-3-14
 */
@Data
@TableName("sys_stretcher")
@ApiModel(value="Stretcher对象", description="担架板库位")
public class Stretcher extends IdEntity implements PreCreateEventEntity, PreUpdateEventEntity {

    @ApiModelProperty(value = "数据id")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "数据创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    @JSONField(format = CommonConstant.TIME_FORMAT_EIGHTEEN)
    private Date createAt;

    @ApiModelProperty(value = "数据创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "数据修改时间")
    @TableField(value = "update_at", fill = FieldFill.UPDATE)
    @JSONField(format = CommonConstant.TIME_FORMAT_EIGHTEEN)
    private Date updateAt;

    @ApiModelProperty(value = "数据修改人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "层数")
    @TableField("layer_num")
    private Integer layerNum;

    @ApiModelProperty(value = "层数")
    @TableField(exist = false)
    private String layer;

    @ApiModelProperty(value = "列数")
    @TableField("column_num")
    private Integer columnNum;

    @ApiModelProperty(value = "列数")
    @TableField(exist = false)
    private String column;

    @ApiModelProperty(value = "是否使用，0-否 1-是")
    @TableField("is_use")
    private String isUse;

    @ApiModelProperty(value = "点位")
    @TableField("stretcher_point")
    private String stretcherPoint;

}